﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Linq;
using System.ServiceProcess;
using System.Text;

namespace WSFacebookPoster
{
    public partial class Service1 : ServiceBase
    {
        public Service1()
        {
            InitializeComponent();
        }

        protected override void OnStart(string[] args)
        {
            //int checkHour = Int32.Parse(ConfigurationSettings.AppSettings["CheckHour"]);

            //int timeInterval = Int32.Parse(ConfigurationSettings.AppSettings["TimeInterval"]);

            // Set Weather Publisher Settings
            //WeatherQuery.SetParameters(checkHour);

            //// Start Weather Publisher once
            //WeatherQuery.GetWeatherInformation();

            //myTimer.Interval = timeInterval * 1000; // Convert to miliseconds
            //myTimer.Enabled = true;
            //myTimer.Elapsed += new ElapsedEventHandler(myTimer_Elapsed);
            //myTimer.Start();
        }

        protected override void OnStop()
        {
        }
    }
}
